package com.ruoyi.attendance.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 打卡记录对象 hr_attendance_record
 * 
 * @author gy
 * @date 2025-05-20
 */
public class HrAttendanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String empName;

    /** 所在部门 */
    @Excel(name = "所在部门")
    private String deptName;

    /** 所在部门 */
    @Excel(name = "部门ID")
    private String deptId;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date attendanceDate;

    /** 归属考勤周期 */
    @Excel(name = "归属考勤周期")
    private String attendanceCycle;

    /** 上班要求时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "上班要求时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date workStartTime;

    /** 下班要求时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "下班要求时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date workEndTime;

    /** 打卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "打卡时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date clockTime;

    /** 定位 */
    private String location;

    /** 打卡状态 */
    @Excel(name = "打卡状态")
    private String clockStatus;

    /** 迟到分钟数 */
    @Excel(name = "迟到分钟数")
    private Long lateMinutes;

    /** 早退分钟数 */
    @Excel(name = "早退分钟数")
    private Long earlyLeaveMinutes;

    /** 提交人 */
    @Excel(name = "提交人")
    private String submitter;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date submitTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEmpName(String empName) 
    {
        this.empName = empName;
    }

    public String getEmpName() 
    {
        return empName;
    }

    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setDeptId(String deptId)
    {
        this.deptId = deptId;
    }

    public String getDeptId()
    {
        return deptId;
    }

    public void setAttendanceDate(Date attendanceDate) 
    {
        this.attendanceDate = attendanceDate;
    }

    public Date getAttendanceDate() 
    {
        return attendanceDate;
    }

    public void setAttendanceCycle(String attendanceCycle) 
    {
        this.attendanceCycle = attendanceCycle;
    }

    public String getAttendanceCycle() 
    {
        return attendanceCycle;
    }

    public void setWorkStartTime(Date workStartTime) 
    {
        this.workStartTime = workStartTime;
    }

    public Date getWorkStartTime() 
    {
        return workStartTime;
    }

    public void setWorkEndTime(Date workEndTime) 
    {
        this.workEndTime = workEndTime;
    }

    public Date getWorkEndTime() 
    {
        return workEndTime;
    }

    public void setClockTime(Date clockTime) 
    {
        this.clockTime = clockTime;
    }

    public Date getClockTime() 
    {
        return clockTime;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setClockStatus(String clockStatus) 
    {
        this.clockStatus = clockStatus;
    }

    public String getClockStatus() 
    {
        return clockStatus;
    }

    public void setLateMinutes(Long lateMinutes) 
    {
        this.lateMinutes = lateMinutes;
    }

    public Long getLateMinutes() 
    {
        return lateMinutes;
    }

    public void setEarlyLeaveMinutes(Long earlyLeaveMinutes) 
    {
        this.earlyLeaveMinutes = earlyLeaveMinutes;
    }

    public Long getEarlyLeaveMinutes() 
    {
        return earlyLeaveMinutes;
    }

    public void setSubmitter(String submitter) 
    {
        this.submitter = submitter;
    }

    public String getSubmitter() 
    {
        return submitter;
    }

    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("empName", getEmpName())
            .append("deptName", getDeptName())
            .append("deptId", getDeptId())
            .append("attendanceDate", getAttendanceDate())
            .append("attendanceCycle", getAttendanceCycle())
            .append("workStartTime", getWorkStartTime())
            .append("workEndTime", getWorkEndTime())
            .append("clockTime", getClockTime())
            .append("location", getLocation())
            .append("clockStatus", getClockStatus())
            .append("lateMinutes", getLateMinutes())
            .append("earlyLeaveMinutes", getEarlyLeaveMinutes())
            .append("submitter", getSubmitter())
            .append("submitTime", getSubmitTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
